.class public final Llt/farmis/libraries/shape_import_android/kml/DataSet;
.super Ljava/lang/Object;
.source "DataSet.kt"


# annotations
.annotation system Ldalvik/annotation/SourceDebugExtension;
    value = "SMAP\nDataSet.kt\nKotlin\n*S Kotlin\n*F\n+ 1 DataSet.kt\nlt/farmis/libraries/shape_import_android/kml/DataSet\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,24:1\n1479#2,2:25\n*E\n*S KotlinDebug\n*F\n+ 1 DataSet.kt\nlt/farmis/libraries/shape_import_android/kml/DataSet\n*L\n13#1,2:25\n*E\n"
.end annotation


# instance fields
.field private currentPlacemark:Llt/farmis/libraries/shape_import_android/kml/Placemark;

.field private placemarks:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Llt/farmis/libraries/shape_import_android/kml/Placemark;",
            ">;"
        }
    .end annotation
.end field

.field private routePlacemark:Llt/farmis/libraries/shape_import_android/kml/Placemark;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 5
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 7
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/DataSet;->placemarks:Ljava/util/ArrayList;

    return-void
.end method


# virtual methods
.method public final addCurrentPlacemark()V
    .locals 2

    .line 20
    iget-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/DataSet;->currentPlacemark:Llt/farmis/libraries/shape_import_android/kml/Placemark;

    if-eqz v0, :cond_0

    iget-object v1, p0, Llt/farmis/libraries/shape_import_android/kml/DataSet;->placemarks:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_0
    return-void
.end method

.method public final getCurrentPlacemark()Llt/farmis/libraries/shape_import_android/kml/Placemark;
    .locals 1

    .line 8
    iget-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/DataSet;->currentPlacemark:Llt/farmis/libraries/shape_import_android/kml/Placemark;

    return-object v0
.end method

.method public final getPlacemarks()Ljava/util/ArrayList;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/ArrayList<",
            "Llt/farmis/libraries/shape_import_android/kml/Placemark;",
            ">;"
        }
    .end annotation

    .line 7
    iget-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/DataSet;->placemarks:Ljava/util/ArrayList;

    return-object v0
.end method

.method public final setCurrentPlacemark(Llt/farmis/libraries/shape_import_android/kml/Placemark;)V
    .locals 0

    .line 8
    iput-object p1, p0, Llt/farmis/libraries/shape_import_android/kml/DataSet;->currentPlacemark:Llt/farmis/libraries/shape_import_android/kml/Placemark;

    return-void
.end method

.method public final setRoutePlacemark(Llt/farmis/libraries/shape_import_android/kml/Placemark;)V
    .locals 0

    .line 9
    iput-object p1, p0, Llt/farmis/libraries/shape_import_android/kml/DataSet;->routePlacemark:Llt/farmis/libraries/shape_import_android/kml/Placemark;

    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 5

    .line 13
    iget-object v0, p0, Llt/farmis/libraries/shape_import_android/kml/DataSet;->placemarks:Ljava/util/ArrayList;

    .line 25
    invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

    move-result-object v0

    const-string v1, ""

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Llt/farmis/libraries/shape_import_android/kml/Placemark;

    .line 14
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2}, Llt/farmis/libraries/shape_import_android/kml/Placemark;->getTitle()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, " "

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Llt/farmis/libraries/shape_import_android/kml/Placemark;->getType()Llt/farmis/libraries/shape_import_android/ShapeImport$Shape;

    move-result-object v4

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v4, "\n"

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Llt/farmis/libraries/shape_import_android/kml/Placemark;->getShapeList()Ljava/util/List;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "--------------------"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    goto :goto_0

    :cond_0
    return-object v1
.end method
